<?php
require './../database.php';
require 'Session.php';
session_start();
extract($_POST);
connect_db();
$query="select * from membres where pseudo='".$pseudo."' and password='".$password."'";
$result=runQuery($query);
if (mysql_num_rows($result)>0){
	$row=mysql_fetch_assoc($result);
	$membre=new Session($row['id_membre']);
	echo $_SESSION['idresidence'];
}
else echo "NOK";